//
//  TravelViewModel.m
//  didacar
//
//  Created by 度周末网络-王腾 on 15/12/18.
//  Copyright © 2015年 dzmmac. All rights reserved.
//

#import "TravelViewModel.h"

@implementation TravelViewModel

-(id)init{
    self.resultData = [[NSMutableArray alloc ] init];
    self.mainTableDataSource = [[NSDictionary alloc ] init];
    return [super init];
}

-(void)loadData{
    
    NSMutableDictionary *mudic = [[NSMutableDictionary alloc ] init];
    [mudic setObject:@"2015-11-11" forKey:@"time"];
    [mudic setObject:@[@"1",@"2"] forKey:@"timeList"];
    [self.resultData addObject:mudic];
    
    
    NSMutableDictionary *mudic1 = [[NSMutableDictionary alloc ] init];
    [mudic1 setObject:@"2015-11-12" forKey:@"time"];
    [mudic1 setObject:@[@"1",@"2",@"3",@"3",@"3"] forKey:@"timeList"];
    [self.resultData addObject:mudic1];
    
    NSMutableDictionary *mudic2 = [[NSMutableDictionary alloc ] init];
    [mudic2 setObject:@"2015-11-13" forKey:@"time"];
    [mudic2 setObject:@[@"1",@"2",@"3",@"3"] forKey:@"timeList"];
    [self.resultData addObject:mudic2];
    
    NSMutableDictionary *mudic3 = [[NSMutableDictionary alloc ] init];
    [mudic3 setObject:@"2015-11-14" forKey:@"time"];
    [mudic3 setObject:@[@"1",@"2",@"3"] forKey:@"timeList"];
    [self.resultData addObject:mudic3];
    
    self.selectedTime = @"2015-11-11";
    self.mainTableDataSource = [self.resultData objectAtIndex:0];
    
}

@end
